
package com.qin.springcloud.service;

import com.qin.springcloud.bean.Users;
import com.qin.springcloud.dao.UsersDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements  UsersService{

    @Autowired
    private UsersDao usersDao;

    @Override
    public void addUsers(Users u) {
        usersDao.addUsers(u);
    }

    @Override
    public Users getById(int id) {
    	System.out.println("8001 getById");
        return usersDao.getById(id);
    }

    @Override
    public List<Users> getlistAll() {
    	System.out.println("8001 getlistAll");
        return usersDao.getlistAll();
    }

	@Override
	public int getOned() {
		// TODO Auto-generated method stub
		return usersDao.getOned();
	}
}

